/*
 * Copyright (c) 2023 huipei.x
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package cn.xphsc.kubernetes.core.query;

import io.kubernetes.client.openapi.models.V1Pod;
/**
 * {@link }
 * @author <a href="xiongpeih@163.com">huipei.x</a>
 * @description: Namespaced Pod Body
 * @since 1.0.0
 */
public class NamespacedPodBody {
    /**
     * namespace object name and auth scope, such as for teams and projects (required)
     */
    private String namespace;
    private V1Pod body;
    private String pretty;
    private  String dryRun;
    private String fieldManager;

    public static NamespacedPodBody.Builder builder() {
        return new NamespacedPodBody.Builder();
    }

    private NamespacedPodBody(NamespacedPodBody.Builder builder) {
        this.namespace = builder.namespace;
        this.body = builder.body;
        this.pretty = builder.pretty;
        this.dryRun = builder.dryRun;
        this.fieldManager = builder.fieldManager;

    }


    public static class Builder {
        private  String namespace;
        private V1Pod body;
        private String pretty;
        private String dryRun;
        private String fieldManager;


        public Builder() {
        }
        /**
         * namespace object name and auth scope, such as for teams and projects (required)
         */
        public <T> NamespacedPodBody.Builder namespace(String namespace) {
            this.namespace = namespace;
            return this;
        }
        public <T> NamespacedPodBody.Builder body(V1Pod body) {
            this.body = body;
            return this;
        }
        /**
         * pretty If &#39;true&#39;, then the output is pretty printed. (optional)
         */
        public <T> NamespacedPodBody.Builder pretty(String pretty) {
            this.pretty = pretty;
            return this;
        }
        /**
         *  dryRun When present, indicates that modifications should not be persisted. An invalid or
         * unrecognized dryRun directive will result in an error response and no further processing of
         * the request. Valid values are: - All: all dry run stages will be processed (optional)
         */
        public <T> NamespacedPodBody.Builder dryRun(String dryRun) {
            this.dryRun = dryRun;
            return this;
        }

        public <T> NamespacedPodBody.Builder fieldManager(String fieldManager) {
            this.fieldManager = fieldManager;
            return this;
        }


        public NamespacedPodBody build() {
            return new NamespacedPodBody(this);
        }
    }

    public String namespace() {
        return namespace;
    }

    public V1Pod body() {
        return body;
    }

    public String pretty() {
        return pretty;
    }

    public String dryRun() {
        return dryRun;
    }

    public String fieldManager() {
        return fieldManager;
    }
}
